  <script type="text/javascript">
    $(function(){     
        // get the current date
        var date = new Date();
        var m = date.getMonth(),
        d = date.getDate() + 1,
        y = date.getFullYear();
        // Datepicker
        $('#startdate').datepicker({ 
            showOn: 'button',
            buttonImage: site_url+'assets/img/backgrounds/calendar2.gif',
            buttonImageOnly: true,
            minDate: new Date(y, m, d),
            maxDate: new Date(y, m+6, d),
            dateFormat: 'dd.mm.yy',
            inline:true,
            numberOfMonths: 3

        });
        
        $('#startdate').datepicker($.datepicker.regional['fr']);
        
        $('#startdate').click(function(){
            $('#startdate').datepicker("show");  
        });         
    });
</script>
<h1>Add Tour</h1>
<div id="infomessage" style="display: none;"></div>

<form name="addtour" id="addtour" method="post" action="javascript: void(null);">
    <div class="lineinput">
        <label>
            Tour name:<br />
            <input name="title" id="title" type="text" class="inputbox" />
        </label>
    </div>

    <div class="lineinput">
        <label>
            Days number:<br />
            <input name="nodays" id="nodays" type="text" class="inputbox" />
        </label>
    </div>

    <div class="lineinput">
        <label>
            Nights number:<br />
            <input name="nonights" id="nonights" type="text" class="inputbox" />
        </label>
    </div>

    <div class="lineinput">
        <label>
             Departure date:<br />
            <div style="position: absolute; display: none;" id="pickup"></div>
            <input name="startdate[]" id="startdate" type="text" class="inputbox tagger" style="width: 320px;" />
        </label>
    </div>

    <div class="lineinput">
        <label>
            Guides:<br />
            <textarea name="guides" id="guides" rows="5" class="inputbox tinymce" cols="40"></textarea>
            <i>guides for excursion details page - around 50 character length for best results</i><br />
            <i>MAX - VARCHAR(255)</i>
        </label>
    </div>
    
    <div class="lineinput">
        <label>
            Tour description:<br />
            <textarea name="description" id="description" class="inputbox tinymce" rows="5" cols="40"></textarea>
        </label>
    </div>

    <div class="lineinput">
        <label>
            Tour text:<br />
            <textarea name="tour_text" id="tour_text" rows="35" class="inputbox tinymce" cols="40"></textarea>
            <i>text for tour details page</i>
        </label>
    </div>
    
    <div class="lineinput">
        <label>
            1/1 room price:<br />
            <input name="onebed" id="onebed" type="text" class="inputbox" /> &euro;
        </label>
    </div>

    <div class="lineinput">
        <label>
            1/2 room price:<br />
            <input name="twobed" id="twobed" type="text" class="inputbox" /> &euro;
        </label>
    </div>

    <div class="lineinput">
        <label>
            Capacity:<br />
            <input name="capacity" id="capacity" type="text" class="inputbox" />
        </label>
    </div>
    
    <div class="lineinput">
        <label>
            Add on during jurney:<br />
            <input name="addition" id="addition" type="text" class="inputbox" />
        </label>
    </div>
    
    <div class="lineinput">
        <label>                          
            Piuckup location:<br />
            <textarea name="pickup_location" id="pickup_location" rows="5" class="inputbox tinymce" cols="40"></textarea>
        </label>
    </div>

    <div class="lineinput">
        <label>
            <input id="capacity" type="submit" value="Add tour" class="greenbtn" />
        </label>
    </div>

</form>
